package com.hxd.mall.injector.modules

import com.hxd.mall.injector.scope.ActivityScope
import com.hxd.mall.module.usercenter.message.IMessagePresenter
import com.hxd.mall.module.usercenter.message.IMessageView
import com.hxd.mall.module.usercenter.message.MessageActivity
import com.hxd.mall.module.usercenter.message.MessagePresenter
import dagger.Binds
import dagger.Module

/**
 * @author zhaoyong
 * @description:
 * @date :2019-10-15 15:29
 */
@Module
abstract class MessageModule {
    @Binds
    internal abstract fun bindView(activity: MessageActivity): IMessageView

    @ActivityScope
    @Binds
    abstract fun provideMainPresenter(presenter: MessagePresenter): IMessagePresenter
}